<%@ page language="java"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%
	String file = request.getParameter("file") + ".action";
	String pageSize = request.getParameter("pagesize");
	String paraName = "";
	//if (pageSize==null || pageSize.equals("")) pageSize="A4";
	java.util.Enumeration em = request.getParameterNames();
	int i = 0;
	while (em.hasMoreElements()) {
		paraName = em.nextElement().toString();
		if (!(paraName.equals("file") || paraName.equals("pagesize"))) {
			if (!(request.getParameter(paraName) == null || request
			.getParameter(paraName).equals(""))) {
		if (i == 0) {
			file = file + "?" + paraName + "="
			+ request.getParameter(paraName);
		} else {
			file = file + "&" + paraName + "="
			+ request.getParameter(paraName);
		}
		i++;
			}
		}
	}
%>
<HTML>
	<HEAD>
		<TITLE></TITLE>
		<META NAME="Author" CONTENT="">
		<META NAME="Keywords" CONTENT="">
		<META NAME="Description" CONTENT="">
		<STYLE TYPE="TEXT/CSS">
body
{
	font-family: "宋体,Arial"; font-size: 10.2pt;
	background-color:'#FFFFFF';	/*!!页面背景颜色!!*/
	margin-left: 0;
	margin-top: 0;
}
</style>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	</HEAD>
	<BODY style="margin:0 " scrolling="no">
		<div id=printBtn align=center style="display:none">
			<input type="button" name="ptBtn" value="打印"
				onClick="MyViewer.print();">
		</div>
		<table width="90%" height="800" border=0 align="center" cellpadding=0
			cellspacing=0>
			<tr height="100%">
				<td valign="top">

					<SCRIPT LANGUAGE="JavaScript" src="js/MRViewer.js"></SCRIPT>
					<SCRIPT LANGUAGE="JavaScript">
						var MyViewer = new MRViewerClass();
					</SCRIPT>
					<table width="100%" border="0" align="center" cellpadding="0"
						cellspacing="0" bgcolor="#FFFFFF">
						<tr>
							<td>
								<iframe src="rptTasketLogin.html" frameborder=0 marginheight=0
									width=100% height="27" marginwidth=0 scrolling=no></iframe>
							</td>
						</tr>
				  </table>
					<TABLE width="100%" height="800" border=0 align="center"
						cellpadding=0 cellspacing=0 id="MRVIEWER_TABLE">
						<TR id="MRVIEWER_TOOLBAR" height="24px" style="display:block">
							<TD>
								<TABLE width="100%" cellspacing=0 border=0 cellpadding=0>
									<TR
										style="border: solid; border-width: 1px 1px 0px 1px; border-color: #000000; height=24px; background-color: #d4d0c8;vertical-align: middle">
										<TD>
											<IMG align=top src="../images/Seprator.jpg">
											<IMG alt="打印" align=top src="../images/Print.jpg"
												style="cursor:hand;border:1 solid #d4d0c8"
												onClick="MyViewer.Print();" onMouseOver="mover(this);"
												onMouseOut="mout(this);" onMouseDown="mdown(this);"
												onMouseUp="mup(this);">
											<IMG align=top src="../images/Seprator.jpg">
											<font style="font-size:12px"> <IMG alt="关闭窗口"
													align=top src="../images/Exit.jpg"
													style="cursor:hand;border:1 solid #d4d0c8"
													onClick="window.top.close();" onMouseOver="mover(this);"
													onMouseOut="mout(this);" onMouseDown="mdown(this);"
													onMouseUp="mup(this);">
										</TD>
										<TD>
											<!--<%out.println("请使用"+pageSize+"纸打印本报表！");%>-->
										</TD>
									</TR>
							  </TABLE>
							</TD>
						</TR>
						<TR>
							<TD align="center">
								<iframe name="MRVIEWER_IFRAME" src="<%=file%>" frameborder="1"
									height="100%" width="100%" align="middle"></iframe>
								<iframe name="MRVIEWER_IFRAME_EXPORT" src=""></iframe>
								<SCRIPT LANGUAGE="JavaScript">
									 //<!--
									 //document.all("MRVIEWER_TABLE").style.height="100%";
									 // document.all("MRVIEWER_TABLE").style.width="100%";
									 MyViewer.Preview();
									 //-->
								</SCRIPT>
							</TD>
						</TR>
					</TABLE>
				</td>
			</tr>
		</table>
	</BODY>
</HTML>
